home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKitArchive.mbox / mbox / 000233_misckit-reques…aska.et.byu.edu_Wed Jun 29 18:55:34 1994.msg < prev    next >
Internet Message Format  |  1994-10-30  |  2KB

  1. Return-Path: <misckit-request@alaska.et.byu.edu>
  2. Received: from alaska.et.byu.edu by darth.byu.edu (NX5.67d/NX3.0M)
  3.     id AA02364; Wed, 29 Jun 94 18:55:26 -0600
  4. Received: from acs1.byu.edu by alaska.et.byu.edu; Wed, 29 Jun 1994 13:15:53 -0600
  5. Received: from DIRECTORY-DAEMON by yvax.byu.edu (PMDF V4.3-7 #7277)
  6.  id <01HE46C9NHKG0Q7Y3O@yvax.byu.edu>; Wed, 29 Jun 1994 13:15:28 MDT
  7. Received: from NeXT.COM by yvax.byu.edu (PMDF V4.3-7 #7277)
  8.  id <01HE46C2ZGN4HTT4QX@yvax.byu.edu>; Wed, 29 Jun 1994 13:15:14 MDT
  9. Received: from goofy by oz.NeXT.COM (NX5.67e/NeXT0.1-Aleph-bf) id AA08820; Wed,
  10.  29 Jun 94 12:14:33 -0700
  11. Received: by goofy.next.com (NX5.67e/NX3.0X) id AA04984; Wed,
  12.  29 Jun 94 12:14:30 -0700
  13. Received: by NeXT.Mailer (1.104.1)
  14. Received: by NeXT Mailer (1.104.1)
  15. Date: Wed, 29 Jun 1994 12:14:30 -0700
  16. From: Kelly_Toshach@NeXT.COM (Kelly Toshach)
  17. Subject: Re: Math classes needed ?
  18. To: Bruce McKenzie <bruce@trwlasd.com>
  19. Cc: misckit@byu.edu
  20. Message-Id: <9406291914.AA08820@oz.NeXT.COM>
  21. Mime-Version: 1.0
  22. Content-Type: text/plain
  23. Content-Transfer-Encoding: 7BIT
  24.  
  25.  
  26. > I think that it is appropriate to have Int, Double, etc. classes. We
  27. > just wrestled with the issue of getting a [perform:] to return a double.
  28. > Look, just because you have the classes, you don't have to use them.
  29. > Heck, I still use char* (SOMETIMES), even though MiscString is
  30. > available.
  31. > I'm kind of surprised that NeXT did not add them in to the Foundation
  32. > classes.  Yes, they would have then had to floss their API again, but
  33. > I can make an argument for it.
  34.  
  35. Foundation, in addition to providing NSValue, provides the subclass
  36. NSNumber.  NSNumber is an object wrapper for C number types (BOOL,
  37. double, long, etc.) NSNumber is provided primarily as a container class
  38. for Objective C types.  You can use them in places where objects are
  39. required (like in collections).
  40.  
  41. Kelly Toshach
  42. Developer Trainer
  43. NeXT Computer, Inc.
  44. Kelly_Toshach@next.com